package top.yuyufeng.mbuy.entity;

import lombok.Data;

import java.util.Date;
import javax.persistence.*;
@Data
@Table(name = "mb_category")
public class Category {
    @Id
    private Integer id;

    /**
     * 父类id，id=0是为根节点
     */
    @Column(name = "parent_id")
    private Integer parentId;

    private String name;

    /**
     * 类别状态 1-正常,2-废弃
     */
    private Integer status;

    @Column(name = "sort_order")
    private Integer sortOrder;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;


}